Integrand size = 31, antiderivative size = 157 \[ \int \sec (c+d x) (a+a \sec (c+d x))^3 \left (A+C \sec ^2(c+d x)\right ) \, dx=\frac {a^3 (20 A+13 C) \text {arctanh}(\sin (c+d x))}{8 d}+\frac {a^3 (20 A+13 C) \tan (c+d x)}{5 d}+\frac {3 a^3 (20 A+13 C) \sec (c+d x) \tan (c+d x)}{40 d}-\frac {C (a+a \sec (c+d x))^3 \tan (c+d x)}{20 d}+\frac {C (a+a \sec (c+d x))^4 \tan (c+d x)}{5 a d}+\frac {a^3 (20 A+13 C) \tan ^3(c+d x)}{60 d} \]
[Out]
Time = 0.31 (sec) , antiderivative size = 157, normalized size of antiderivative = 1.00, number of steps used = 11, number of rules used = 7, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.226, Rules used = {4168, 4086, 3876, 3855, 3852, 8, 3853} \[ \int \sec (c+d x) (a+a \sec (c+d x))^3 \left (A+C \sec ^2(c+d x)\right ) \, dx=\frac {a^3 (20 A+13 C) \text {arctanh}(\sin (c+d x))}{8 d}+\frac {a^3 (20 A+13 C) \tan ^3(c+d x)}{60 d}+\frac {a^3 (20 A+13 C) \tan (c+d x)}{5 d}+\frac {3 a^3 (20 A+13 C) \tan (c+d x) \sec (c+d x)}{40 d}+\frac {C \tan (c+d x) (a \sec (c+d x)+a)^4}{5 a d}-\frac {C \tan (c+d x) (a \sec (c+d x)+a)^3}{20 d} \]
[In]
[Out]
Rule 8
Rule 3852
Rule 3853
Rule 3855
Rule 3876
Rule 4086
Rule 4168
Rubi steps \begin{align*} \text {integral}& = \frac {C (a+a \sec (c+d x))^4 \tan (c+d x)}{5 a d}+\frac {\int \sec (c+d x) (a+a \sec (c+d x))^3 (a (5 A+4 C)-a C \sec (c+d x)) \, dx}{5 a} \\ & = -\frac {C (a+a \sec (c+d x))^3 \tan (c+d x)}{20 d}+\frac {C (a+a \sec (c+d x))^4 \tan (c+d x)}{5 a d}+\frac {1}{20} (20 A+13 C) \int \sec (c+d x) (a+a \sec (c+d x))^3 \, dx \\ & = -\frac {C (a+a \sec (c+d x))^3 \tan (c+d x)}{20 d}+\frac {C (a+a \sec (c+d x))^4 \tan (c+d x)}{5 a d}+\frac {1}{20} (20 A+13 C) \int \left (a^3 \sec (c+d x)+3 a^3 \sec ^2(c+d x)+3 a^3 \sec ^3(c+d x)+a^3 \sec ^4(c+d x)\right ) \, dx \\ & = -\frac {C (a+a \sec (c+d x))^3 \tan (c+d x)}{20 d}+\frac {C (a+a \sec (c+d x))^4 \tan (c+d x)}{5 a d}+\frac {1}{20} \left (a^3 (20 A+13 C)\right ) \int \sec (c+d x) \, dx+\frac {1}{20} \left (a^3 (20 A+13 C)\right ) \int \sec ^4(c+d x) \, dx+\frac {1}{20} \left (3 a^3 (20 A+13 C)\right ) \int \sec ^2(c+d x) \, dx+\frac {1}{20} \left (3 a^3 (20 A+13 C)\right ) \int \sec ^3(c+d x) \, dx \\ & = \frac {a^3 (20 A+13 C) \text {arctanh}(\sin (c+d x))}{20 d}+\frac {3 a^3 (20 A+13 C) \sec (c+d x) \tan (c+d x)}{40 d}-\frac {C (a+a \sec (c+d x))^3 \tan (c+d x)}{20 d}+\frac {C (a+a \sec (c+d x))^4 \tan (c+d x)}{5 a d}+\frac {1}{40} \left (3 a^3 (20 A+13 C)\right ) \int \sec (c+d x) \, dx-\frac {\left (a^3 (20 A+13 C)\right ) \text {Subst}\left (\int \left (1+x^2\right ) \, dx,x,-\tan (c+d x)\right )}{20 d}-\frac {\left (3 a^3 (20 A+13 C)\right ) \text {Subst}(\int 1 \, dx,x,-\tan (c+d x))}{20 d} \\ & = \frac {a^3 (20 A+13 C) \text {arctanh}(\sin (c+d x))}{8 d}+\frac {a^3 (20 A+13 C) \tan (c+d x)}{5 d}+\frac {3 a^3 (20 A+13 C) \sec (c+d x) \tan (c+d x)}{40 d}-\frac {C (a+a \sec (c+d x))^3 \tan (c+d x)}{20 d}+\frac {C (a+a \sec (c+d x))^4 \tan (c+d x)}{5 a d}+\frac {a^3 (20 A+13 C) \tan ^3(c+d x)}{60 d} \\ \end{align*}
Time = 4.21 (sec) , antiderivative size = 195, normalized size of antiderivative = 1.24 \[ \int \sec (c+d x) (a+a \sec (c+d x))^3 \left (A+C \sec ^2(c+d x)\right ) \, dx=\frac {5 a^3 A \text {arctanh}(\sin (c+d x))}{2 d}+\frac {13 a^3 C \text {arctanh}(\sin (c+d x))}{8 d}+\frac {4 a^3 A \tan (c+d x)}{d}+\frac {4 a^3 C \tan (c+d x)}{d}+\frac {3 a^3 A \sec (c+d x) \tan (c+d x)}{2 d}+\frac {13 a^3 C \sec (c+d x) \tan (c+d x)}{8 d}+\frac {3 a^3 C \sec ^3(c+d x) \tan (c+d x)}{4 d}+\frac {a^3 A \tan ^3(c+d x)}{3 d}+\frac {5 a^3 C \tan ^3(c+d x)}{3 d}+\frac {a^3 C \tan ^5(c+d x)}{5 d} \]
[In]
[Out]
Time = 0.48 (sec) , antiderivative size = 201, normalized size of antiderivative = 1.28
method | result | size |
norman | \(\frac {-\frac {32 a^{3} \left (20 A +13 C \right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{5}}{15 d}+\frac {7 a^{3} \left (20 A +13 C \right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{7}}{6 d}-\frac {a^{3} \left (20 A +13 C \right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{9}}{4 d}-\frac {a^{3} \left (44 A +51 C \right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{4 d}+\frac {a^{3} \left (212 A +133 C \right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{3}}{6 d}}{\left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-1\right )^{5}}-\frac {a^{3} \left (20 A +13 C \right ) \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )}{8 d}+\frac {a^{3} \left (20 A +13 C \right ) \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )}{8 d}\) | \(201\) |
parts | \(-\frac {\left (a^{3} A +3 a^{3} C \right ) \left (-\frac {2}{3}-\frac {\sec \left (d x +c \right )^{2}}{3}\right ) \tan \left (d x +c \right )}{d}+\frac {\left (3 a^{3} A +a^{3} C \right ) \left (\frac {\sec \left (d x +c \right ) \tan \left (d x +c \right )}{2}+\frac {\ln \left (\sec \left (d x +c \right )+\tan \left (d x +c \right )\right )}{2}\right )}{d}+\frac {A \ln \left (\sec \left (d x +c \right )+\tan \left (d x +c \right )\right ) a^{3}}{d}-\frac {a^{3} C \left (-\frac {8}{15}-\frac {\sec \left (d x +c \right )^{4}}{5}-\frac {4 \sec \left (d x +c \right )^{2}}{15}\right ) \tan \left (d x +c \right )}{d}+\frac {3 a^{3} A \tan \left (d x +c \right )}{d}+\frac {3 a^{3} C \left (-\left (-\frac {\sec \left (d x +c \right )^{3}}{4}-\frac {3 \sec \left (d x +c \right )}{8}\right ) \tan \left (d x +c \right )+\frac {3 \ln \left (\sec \left (d x +c \right )+\tan \left (d x +c \right )\right )}{8}\right )}{d}\) | \(211\) |
parallelrisch | \(\frac {26 a^{3} \left (-\frac {75 \left (A +\frac {13 C}{20}\right ) \left (\frac {\cos \left (5 d x +5 c \right )}{10}+\frac {\cos \left (3 d x +3 c \right )}{2}+\cos \left (d x +c \right )\right ) \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )}{26}+\frac {75 \left (A +\frac {13 C}{20}\right ) \left (\frac {\cos \left (5 d x +5 c \right )}{10}+\frac {\cos \left (3 d x +3 c \right )}{2}+\cos \left (d x +c \right )\right ) \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )}{26}+\left (\frac {9 A}{13}+\frac {75 C}{52}\right ) \sin \left (2 d x +2 c \right )+\left (\frac {37 A}{26}+\frac {19 C}{13}\right ) \sin \left (3 d x +3 c \right )+\left (\frac {9 A}{26}+\frac {3 C}{8}\right ) \sin \left (4 d x +4 c \right )+\left (\frac {11 A}{26}+\frac {19 C}{65}\right ) \sin \left (5 d x +5 c \right )+\sin \left (d x +c \right ) \left (A +\frac {20 C}{13}\right )\right )}{3 d \left (\cos \left (5 d x +5 c \right )+5 \cos \left (3 d x +3 c \right )+10 \cos \left (d x +c \right )\right )}\) | \(217\) |
derivativedivides | \(\frac {a^{3} A \ln \left (\sec \left (d x +c \right )+\tan \left (d x +c \right )\right )+a^{3} C \left (\frac {\sec \left (d x +c \right ) \tan \left (d x +c \right )}{2}+\frac {\ln \left (\sec \left (d x +c \right )+\tan \left (d x +c \right )\right )}{2}\right )+3 a^{3} A \tan \left (d x +c \right )-3 a^{3} C \left (-\frac {2}{3}-\frac {\sec \left (d x +c \right )^{2}}{3}\right ) \tan \left (d x +c \right )+3 a^{3} A \left (\frac {\sec \left (d x +c \right ) \tan \left (d x +c \right )}{2}+\frac {\ln \left (\sec \left (d x +c \right )+\tan \left (d x +c \right )\right )}{2}\right )+3 a^{3} C \left (-\left (-\frac {\sec \left (d x +c \right )^{3}}{4}-\frac {3 \sec \left (d x +c \right )}{8}\right ) \tan \left (d x +c \right )+\frac {3 \ln \left (\sec \left (d x +c \right )+\tan \left (d x +c \right )\right )}{8}\right )-a^{3} A \left (-\frac {2}{3}-\frac {\sec \left (d x +c \right )^{2}}{3}\right ) \tan \left (d x +c \right )-a^{3} C \left (-\frac {8}{15}-\frac {\sec \left (d x +c \right )^{4}}{5}-\frac {4 \sec \left (d x +c \right )^{2}}{15}\right ) \tan \left (d x +c \right )}{d}\) | \(242\) |
default | \(\frac {a^{3} A \ln \left (\sec \left (d x +c \right )+\tan \left (d x +c \right )\right )+a^{3} C \left (\frac {\sec \left (d x +c \right ) \tan \left (d x +c \right )}{2}+\frac {\ln \left (\sec \left (d x +c \right )+\tan \left (d x +c \right )\right )}{2}\right )+3 a^{3} A \tan \left (d x +c \right )-3 a^{3} C \left (-\frac {2}{3}-\frac {\sec \left (d x +c \right )^{2}}{3}\right ) \tan \left (d x +c \right )+3 a^{3} A \left (\frac {\sec \left (d x +c \right ) \tan \left (d x +c \right )}{2}+\frac {\ln \left (\sec \left (d x +c \right )+\tan \left (d x +c \right )\right )}{2}\right )+3 a^{3} C \left (-\left (-\frac {\sec \left (d x +c \right )^{3}}{4}-\frac {3 \sec \left (d x +c \right )}{8}\right ) \tan \left (d x +c \right )+\frac {3 \ln \left (\sec \left (d x +c \right )+\tan \left (d x +c \right )\right )}{8}\right )-a^{3} A \left (-\frac {2}{3}-\frac {\sec \left (d x +c \right )^{2}}{3}\right ) \tan \left (d x +c \right )-a^{3} C \left (-\frac {8}{15}-\frac {\sec \left (d x +c \right )^{4}}{5}-\frac {4 \sec \left (d x +c \right )^{2}}{15}\right ) \tan \left (d x +c \right )}{d}\) | \(242\) |
risch | \(-\frac {i a^{3} \left (180 A \,{\mathrm e}^{9 i \left (d x +c \right )}+195 C \,{\mathrm e}^{9 i \left (d x +c \right )}-360 A \,{\mathrm e}^{8 i \left (d x +c \right )}+360 A \,{\mathrm e}^{7 i \left (d x +c \right )}+750 C \,{\mathrm e}^{7 i \left (d x +c \right )}-1680 A \,{\mathrm e}^{6 i \left (d x +c \right )}-720 C \,{\mathrm e}^{6 i \left (d x +c \right )}-2720 A \,{\mathrm e}^{4 i \left (d x +c \right )}-2320 C \,{\mathrm e}^{4 i \left (d x +c \right )}-360 A \,{\mathrm e}^{3 i \left (d x +c \right )}-750 C \,{\mathrm e}^{3 i \left (d x +c \right )}-1840 A \,{\mathrm e}^{2 i \left (d x +c \right )}-1520 C \,{\mathrm e}^{2 i \left (d x +c \right )}-180 A \,{\mathrm e}^{i \left (d x +c \right )}-195 C \,{\mathrm e}^{i \left (d x +c \right )}-440 A -304 C \right )}{60 d \left ({\mathrm e}^{2 i \left (d x +c \right )}+1\right )^{5}}-\frac {5 a^{3} \ln \left ({\mathrm e}^{i \left (d x +c \right )}-i\right ) A}{2 d}-\frac {13 a^{3} \ln \left ({\mathrm e}^{i \left (d x +c \right )}-i\right ) C}{8 d}+\frac {5 a^{3} \ln \left ({\mathrm e}^{i \left (d x +c \right )}+i\right ) A}{2 d}+\frac {13 a^{3} \ln \left ({\mathrm e}^{i \left (d x +c \right )}+i\right ) C}{8 d}\) | \(299\) |
[In]
[Out]
none
Time = 0.27 (sec) , antiderivative size = 161, normalized size of antiderivative = 1.03 \[ \int \sec (c+d x) (a+a \sec (c+d x))^3 \left (A+C \sec ^2(c+d x)\right ) \, dx=\frac {15 \, {\left (20 \, A + 13 \, C\right )} a^{3} \cos \left (d x + c\right )^{5} \log \left (\sin \left (d x + c\right ) + 1\right ) - 15 \, {\left (20 \, A + 13 \, C\right )} a^{3} \cos \left (d x + c\right )^{5} \log \left (-\sin \left (d x + c\right ) + 1\right ) + 2 \, {\left (8 \, {\left (55 \, A + 38 \, C\right )} a^{3} \cos \left (d x + c\right )^{4} + 15 \, {\left (12 \, A + 13 \, C\right )} a^{3} \cos \left (d x + c\right )^{3} + 8 \, {\left (5 \, A + 19 \, C\right )} a^{3} \cos \left (d x + c\right )^{2} + 90 \, C a^{3} \cos \left (d x + c\right ) + 24 \, C a^{3}\right )} \sin \left (d x + c\right )}{240 \, d \cos \left (d x + c\right )^{5}} \]
[In]
[Out]
\[ \int \sec (c+d x) (a+a \sec (c+d x))^3 \left (A+C \sec ^2(c+d x)\right ) \, dx=a^{3} \left (\int A \sec {\left (c + d x \right )}\, dx + \int 3 A \sec ^{2}{\left (c + d x \right )}\, dx + \int 3 A \sec ^{3}{\left (c + d x \right )}\, dx + \int A \sec ^{4}{\left (c + d x \right )}\, dx + \int C \sec ^{3}{\left (c + d x \right )}\, dx + \int 3 C \sec ^{4}{\left (c + d x \right )}\, dx + \int 3 C \sec ^{5}{\left (c + d x \right )}\, dx + \int C \sec ^{6}{\left (c + d x \right )}\, dx\right ) \]
[In]
[Out]
none
Time = 0.20 (sec) , antiderivative size = 285, normalized size of antiderivative = 1.82 \[ \int \sec (c+d x) (a+a \sec (c+d x))^3 \left (A+C \sec ^2(c+d x)\right ) \, dx=\frac {80 \, {\left (\tan \left (d x + c\right )^{3} + 3 \, \tan \left (d x + c\right )\right )} A a^{3} + 16 \, {\left (3 \, \tan \left (d x + c\right )^{5} + 10 \, \tan \left (d x + c\right )^{3} + 15 \, \tan \left (d x + c\right )\right )} C a^{3} + 240 \, {\left (\tan \left (d x + c\right )^{3} + 3 \, \tan \left (d x + c\right )\right )} C a^{3} - 45 \, C a^{3} {\left (\frac {2 \, {\left (3 \, \sin \left (d x + c\right )^{3} - 5 \, \sin \left (d x + c\right )\right )}}{\sin \left (d x + c\right )^{4} - 2 \, \sin \left (d x + c\right )^{2} + 1} - 3 \, \log \left (\sin \left (d x + c\right ) + 1\right ) + 3 \, \log \left (\sin \left (d x + c\right ) - 1\right )\right )} - 180 \, A a^{3} {\left (\frac {2 \, \sin \left (d x + c\right )}{\sin \left (d x + c\right )^{2} - 1} - \log \left (\sin \left (d x + c\right ) + 1\right ) + \log \left (\sin \left (d x + c\right ) - 1\right )\right )} - 60 \, C a^{3} {\left (\frac {2 \, \sin \left (d x + c\right )}{\sin \left (d x + c\right )^{2} - 1} - \log \left (\sin \left (d x + c\right ) + 1\right ) + \log \left (\sin \left (d x + c\right ) - 1\right )\right )} + 240 \, A a^{3} \log \left (\sec \left (d x + c\right ) + \tan \left (d x + c\right )\right ) + 720 \, A a^{3} \tan \left (d x + c\right )}{240 \, d} \]
[In]
[Out]
none
Time = 0.37 (sec) , antiderivative size = 246, normalized size of antiderivative = 1.57 \[ \int \sec (c+d x) (a+a \sec (c+d x))^3 \left (A+C \sec ^2(c+d x)\right ) \, dx=\frac {15 \, {\left (20 \, A a^{3} + 13 \, C a^{3}\right )} \log \left ({\left | \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 1 \right |}\right ) - 15 \, {\left (20 \, A a^{3} + 13 \, C a^{3}\right )} \log \left ({\left | \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - 1 \right |}\right ) - \frac {2 \, {\left (300 \, A a^{3} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{9} + 195 \, C a^{3} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{9} - 1400 \, A a^{3} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{7} - 910 \, C a^{3} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{7} + 2560 \, A a^{3} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} + 1664 \, C a^{3} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} - 2120 \, A a^{3} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} - 1330 \, C a^{3} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} + 660 \, A a^{3} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 765 \, C a^{3} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right )}}{{\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 1\right )}^{5}}}{120 \, d} \]
[In]
[Out]
Time = 18.29 (sec) , antiderivative size = 224, normalized size of antiderivative = 1.43 \[ \int \sec (c+d x) (a+a \sec (c+d x))^3 \left (A+C \sec ^2(c+d x)\right ) \, dx=\frac {a^3\,\mathrm {atanh}\left (\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\right )\,\left (20\,A+13\,C\right )}{4\,d}-\frac {\left (5\,A\,a^3+\frac {13\,C\,a^3}{4}\right )\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^9+\left (-\frac {70\,A\,a^3}{3}-\frac {91\,C\,a^3}{6}\right )\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^7+\left (\frac {128\,A\,a^3}{3}+\frac {416\,C\,a^3}{15}\right )\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^5+\left (-\frac {106\,A\,a^3}{3}-\frac {133\,C\,a^3}{6}\right )\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3+\left (11\,A\,a^3+\frac {51\,C\,a^3}{4}\right )\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}{d\,\left ({\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{10}-5\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^8+10\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^6-10\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4+5\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2-1\right )} \]
[In]
[Out]